package com.aurora.strategy.context;

import com.aurora.strategy.RedisStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class RedisStrategyContext {

    @Autowired
    private RedisStrategy redisStrategy;

    public void executeRedisAddStrategy(String key,String value){
        redisStrategy.sAddWithOss(key,value);
    }

    public void executeRedisRemoveStrategy(String key,String value) {
        redisStrategy.sRemoveWithOss(key,value);
    }
}
